package payroll.trans;


import payroll.PaymentClassification;
import payroll.classification.SalariedClassification;


public class AddSalaryEmployeeTransaction extends AddEmployeeTransaction {

    private double salary;
    public AddSalaryEmployeeTransaction(int id, String name, String address, double salary) {
        super(id, name, address);
        this.salary = salary;
    }

    @Override
    protected PaymentClassification getPaymentClassification() {
        return new SalariedClassification(salary);
    }
}
